package com.ysd.lis.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * cold_chain.t_org_department
 * </p>
 *
 * @author Peng
 * @since 2021-10-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("SYS_ORG_DEPARTMENT")
@Entity
@Table(name = "SYS_ORG_DEPARTMENT")
public class SysOrgDepartment extends BaseEntityJpa implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableField("PARENT_ID")
    @Column(name = "PARENT_ID")
    private String parentId;


    @TableField("NAME")
    @Column(name = "NAME")
    private String name;

    @TableField("CODE")
    @Column(name = "CODE")
    private String code;

    @TableField("CONTACT_NAME")
    @Column(name = "CONTACT_NAME")
    private String contactName;

    @TableField("CONTACTTEL")
    @Column(name = "CONTACTTEL")
    private String contactTel;

    @TableField("ADDRESS")
    @Column(name = "ADDRESS")
    private String address;

    @TableField("APPLY_SEX")
    @Column(name = "APPLY_SEX")
    private String applySex;

    @TableField("WHONET_CODE")
    @Column(name = "WHONET_CODE")
    private String whonetCode;

    @TableField("WHONET_NAME")
    @Column(name = "WHONET_NAME")
    private String whonetName;

    @TableField("IS_CHECK")
    @Column(name = "IS_CHECK")
    private Boolean isCheck;

    @TableField("IS_SAMPLE")
    @Column(name = "IS_SAMPLE")
    private Boolean isSample;

    /**
     * 助记码
     */
    @TableField("INPUT_CODE")
    @Column(name = "INPUT_CODE")
    private String inputCode;

    @TableField(exist = false)
    @Transient
    private List<TDeptGroup> deptGroupList;
    @TableField(exist = false)
    @Transient
    private String orgName;
    @TableField(exist = false)
    @Transient
    private List<SysUser> userList;

}
